﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace SmartController.Convertors
{
    public class PrependStringToInt : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            //if (targetType != typeof(int))
            //    throw new InvalidOperationException("The target must be a int");

            return "Profile " + value;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
